/*
 * message_app_start.cpp
 *
 *  Created on: 28 Oca 2012
 *      Author: root
 */

#include "message_activity_start.h"
#include "../../application.h"

namespace androidplus {
namespace messaging{
namespace activity{

message_activity_start::message_activity_start():message(MSG_ACTIVITY_START) {


}

message_activity_start::~message_activity_start() {

}
void message_activity_start::execute()
{
	 LOGI("Activity Starting");
     application::cur_app()->cur_activity()->threading_lock_mutex();
     application::cur_app()->cur_activity()->status.state=androidplus::activity::ACTIVITY_RUNNING;
     application::cur_app()->cur_activity()->activity_on_start();
     application::cur_app()->cur_activity()->threading_condition_broadcast();
     application::cur_app()->cur_activity()->threading_unlock_mutex();
     LOGI("Activity Started");
}


}
}
} /* namespace androidplus */
